#include "CBootStrapAttriDescriptor.h"


CBootStrapAttriDescriptor::CBootStrapAttriDescriptor(void):IDescriptorData(DESCRIPTOR_TAG_BOOTSTRAP_AD_ATTRIBUTES)
, m_ucAdType(32)
, m_strTypeName("")
, m_ucDisplayTime(0)
, m_ucGroup(0)
, m_ucPriority(0)
, m_ucExPro1(0)
, m_ucExPro2(0)
{	
}

CBootStrapAttriDescriptor::~CBootStrapAttriDescriptor(void)
{
}

void CBootStrapAttriDescriptor::GetData(BYTE* buff  , int &len)
{	
	CBuffer stBuffer(buff,DESCRIPTOR_MAXLEN);
	PACK_DESCRIPTOR_BUFFER_START(stBuffer,DESCRIPTOR_TAG_BOOTSTRAP_AD_ATTRIBUTES);

	stBuffer.Write((BYTE)m_ucAdType);
	stBuffer.Write((BYTE)m_ucDisplayTime);
	stBuffer.Write((BYTE)m_ucPriority);
	stBuffer.Write((BYTE)m_ucGroup);
	stBuffer.Write((BYTE)m_ucExPro1);
	stBuffer.Write((BYTE)m_ucExPro2);

	len = PACK_DESCRIPTOR_BUFFER_END(stBuffer);

}